using System;

namespace MM.Translator.Model
{
    public interface ITranslationProvider
    {
        void Translate(string inputText, string fromLanguage, string toLanguage);

        event EventHandler<TranslationEventArgs> TranslationCompleted;
    }

    public class TranslationEventArgs : EventArgs
    {
        public Exception Error { get; set; }
        public string Result { get; set; }
    }
}